package net.uiiang.android.alkaid.utils;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.view.View;

public class DialogUtils {
    public static Dialog getDialog(Context context, String title,
            String message, View view,int buttonNum) {
        // new AlertDialog.Builder(FileManager.this).setTitle("A.L.K.A.I.D")
        // .setView(aboutView).setPositiveButton(R.string.close,
        // new DialogInterface.OnClickListener() {
        // public void onClick(DialogInterface dialog,
        // int which) {
        // return;
        // }
        // }).show();

        AlertDialog.Builder builder = new AlertDialog.Builder(context);
        if (title != null && !"".equals(title.trim())) {
            builder.setTitle(title);
        }
        if (message != null && !"".equals(message.trim())) {
            builder.setMessage(message);
        }
        if (view != null) {
            builder.setView(view);
        }
        
        return null;
    }
}
